<?php 
class updatequestion_model extends CI_Model{
	function updatequestion_model()
	{
		 'parent'||model();
	}
public function updatequest($courseid,$questid,$Quest,$Answ,$StatusId)
	{
 $query = "UPDATE questions SET courseId='$courseid', question='$Quest', answer='$Answ', status='$StatusId' WHERE id='$questid' ";
	         $result=$this->db->query($query); 
              return $result;

	}
 }
 ?>